var express = require('express')
var fs = require('fs')
var path = require('path')
var router = express.Router()

router.get('/',function(req,res){
    res.render('index.html')
})

// 登录
router.get('/login',function(req,res){
    res.render('login.html')
})

router.post('/login',function(req,res){
    
})

// 注册
router.get('/register',function(req,res){
    res.render('register.html')
})

router.post('/register',function(req,res){
    console.log(req.body);
    // window.localStorage.User_email = req.body.email;
    // window.localStorage.User_password = req.body.email;
    res.render('login.html');
})

module.exports = router